load("@rules_rust//rust:defs.bzl", "rust_library", "rust_test")

package(default_visibility = ["//visibility:public"])

DEPENDENCIES = [
    # Keep sorted.
    "//packages/ic-ed25519",
    "//rs/canister_client/sender",
    "//rs/types/types",
    "//rs/types/types_test_utils",
    "@crate_index//:rand",
]

rust_library(
    name = "types",
    testonly = True,
    srcs = glob(["src/**"]),
    crate_name = "ic_test_utilities_types",
    version = "0.9.0",
    deps = DEPENDENCIES,
)

rust_test(
    name = "test_utilities_types_test",
    crate = ":types",
    deps = [
        # Keep sorted.
        "@crate_index//:bincode",
        "@crate_index//:serde_cbor",
    ],
)
